//
//  BlenderLayer.h
//  slushy
//
//  Created by luotianqiang1 on 17/5/27.
//
//

#ifndef BlenderLayer_h
#define BlenderLayer_h

#include "BaseMakeLayer.h"
class BlenderLayer: public BaseMakeLayer {
    DECLARE_DYNCLASS(BlenderLayer);
public:
    CREATE_PHYSICS_SECENE(BlenderLayer);
protected:
    bool init();
    virtual void touchEnd(ui::Widget* widget);
    virtual void onEnterTransitionDidFinish();
    virtual void startFall(LQComponent*, OperateListner* _lis);
    void fallEnd(LQComponent* fall, OperateListner* _lis);
    void touchDown(LQComponent* fall, OperateListner* _lis);
    void touchUp(LQComponent* fall, OperateListner* _lis);
    virtual void onExitTransitionDidStart();
protected:
    void showFallThing(string name);
    void showColor(string colorName);
    void showLid();
    void blendIce(float time);
    void blendAllEnd();
    vector<string> addThings;
    vector<string> colorNames;
    string currentColor;
    vector<Node*> ice0;
    vector<Node*> ice1;
    vector<Node*> actionNodes;
};

#endif /* BlenderLayer_h */
